<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth'], function () {
    Route::get('/', function(){
        return view('admin.layout');
    });
    Route::get('article/index', 'ArticleController@index');
    Route::get('article/trash', 'ArticleController@trash');
    Route::post('article/restore/{id}', 'ArticleController@restore');
    Route::delete('article/forceDelete/{id}', 'ArticleController@forceDelete');
    //Route::resource('article', 'ArticleController');
});


Route::get('auth/login','Auth\AuthController@getLogin');
Route::post('auth/login','Auth\AuthController@postLogin');
//Route::get('auth/register','Auth\AuthController@getRegister');
//Route::post('auth/register','Auth\AuthController@postRegister');
Route::get('auth/logout','Auth\AuthController@getLogout');